<template>
  <div>
    <h1 :style="{ color: colorStr }">演示依赖注入（prvide/inject）</h1>
  </div>
</template>

<script setup lang="ts">
import { inject } from "vue";

let colorStr = inject<string>("colorObj");
</script>

<style scoped></style>
